<!-- 
 跳转页面
      <宾和>
      Created by YSG on 2017-01-06.
      Copyright 2017 YSG. All rights reserved.
 -->
<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>宾和投资</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../assets/css/mui.min.css" rel="stylesheet" />
		<link href="../assets/css/main.css" rel="stylesheet" />
		<style type="text/css">

		</style>
	</head>

	<body>
		<!--header beg-->
		<header class="mui-bar mui-bar-transparent">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title"></h1>
		</header>
		<div class="mui-content">
		</div>
		<script src="../assets/lib/mui/mui.min.js"></script>
		<script src="../assets/lib/zepto/zepto.min.js"></script>
		<script src="../assets/lib/layer_mobile/layer.js"></script>
		<script src="../assets/common/util.js"></script>
		<script src="../assets/common/common.js"></script>
		<script type="text/javascript">
			var url = Util.requestURL('url');
			url = decodeURIComponent(url);
			if(url.indexOf('www')==0){
			  url = 'http://'+url;
			}
			if(url.indexOf('http')<0 && url.indexOf('https')<0 ){
				url = server_url + (url.indexOf("/")==0?url:('/'+url));
			}
			var title = decodeURIComponent(Util.requestURL('title'));
			var Main = function() {
				mui.init({
					swipeBack: false, //启用右滑关闭功能
					subpages: [{
						url: url, //子页面HTML地址，支持本地地址和网络地址
						id: url, //子页面标志
						styles: {
							top: '45px', //mui标题栏默认高度为45px；
							bottom: '0px' //默认为0px，可不定义；
						},
						extras: {} //额外扩展参数
					}],
				});
				this.init();
				this.even();
			};
			Main.prototype = {
				init: function() {
					$('.mui-title').html(title);
					$('title').html(title);
				},
				even: function() {
					/*$('#huifu-1').load(function(e) {
						var msg = document.getElementById('huifu-1').contentWindow.document;
						console.log(document.getElementById('huifu-1').contentWindow.document)
						var callUrl = msg.baseURI;
						if(callUrl) {
							//http://127.0.0.1:8000/sh_p2p_bhtz/thirdPay/pageUrlThirdPayInterface.do
							callUrl = callUrl.substring(callUrl.indexOf("?") + 1, callUrl.length);
							console.log("===" + callUrl + "====");
							var param = {}
							mui.getJSON(callUrl, param, function(retData) {
								console.log(retData);
							})
						}
					});*/
				}
			}
			$(function() {
				new Main();
			});
		</script>
	</body>

</html>